package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;

import com.itheima.entity.Result;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Set;

public interface RoleService {


    List<Integer> findByUserId(int id);

    Result deleteByRoleId(Integer RoleId);

    List<Role> findAll();

    List<Integer> findPermissionIdByRoleId(Integer roleId);

    void edit(Role role, Integer[] permissionIds);

    PageResult findPage(QueryPageBean queryPageBean);

    Result add(Role role, Integer[] permissionIds);

    Role findRoleByRoleId(Integer roleId);

}
